package com.weilive.pay.msg;

import java.util.Date;

import com.alibaba.fastjson.JSONObject;

public class ToPayMsg {
	private String isSuccessFlag;
	private String error;
	private Integer curMoney;
	private Long vipDate;

	public ToPayMsg(String isSuccessFlag, String error, Integer curMoney, Date vipDate) {
		this.isSuccessFlag = isSuccessFlag;
		this.error = error;
		this.curMoney = curMoney;
		if (vipDate != null) {
			this.vipDate = vipDate.getTime() / 1000L;
		}
	}

	public String getIsSuccessFlag() {
		return isSuccessFlag;
	}

	public void setIsSuccessFlag(String isSuccessFlag) {
		this.isSuccessFlag = isSuccessFlag;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Integer getCurMoney() {
		return curMoney;
	}

	public void setCurMoney(Integer curMoney) {
		this.curMoney = curMoney;
	}

	public Long getVipDate() {
		return vipDate;
	}

	public void setVipDate(Long vipDate) {
		this.vipDate = vipDate;
	}

	public String toString() {
		return JSONObject.toJSONString(this);
	}
}
